package com.tedu.feign;

import com.tedu.pojo.Order;
import com.tedu.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 *
 * </p>
 *
 * @author Song
 * @since 2020/11/25
 */
@FeignClient(value = "order-service",fallback = OrderClientFb.class)
public interface OrderClient {

    @GetMapping("/{orderId}")
    JsonResult<Order> getOrder(@PathVariable String orderId);

    @GetMapping("/")
    JsonResult addOrder();
}
